package com.yfp.operation.mapper;

import com.yfp.operation.domain.AiModelConfig;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 *
 * @description 针对表【ai_model_config(AI模型配置表)】的数据库操作Mapper
 * @createDate 2025-02-24 15:08:52
 * @Entity domain.com.yfp.operation.AiModelConfig
 */
public interface AiModelConfigMapper extends BaseMapper<AiModelConfig> {

    /**
     * 根据模型服务id查询模型配置
     *
     * @param aiModelServiceId
     * @return
     */
    List<AiModelConfig> selectByModelServiceId(Long aiModelServiceId);

    /**
     * 根据模型服务id删除模型配置
     *
     * @param aiModelServiceId
     */
    void removeByModelServiceId(Long aiModelServiceId);

    /**
     * 取消默认模型
     *
     * @param aiModelServiceId
     */
    void cancelDefaultModel(AiModelConfig aiModelServiceId);
}




